package kr.co.doriclassic.ifelse;

import java.io.IOException;
import java.util.Scanner;

public class resEx {
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		int iProduct;
		String cWord;
		int iTicket, iAge, iTime;
		int a, b, c;
		
		
		
		System.out.println("===== 1번문제 =====");
		System.out.print("물건의 개수 입력:");
		iProduct = sc.nextInt();
		FruitShop f = new FruitShop(iProduct);
		System.out.println(f);
		
		System.out.println("===== 2번문제 =====");
		System.out.print("문자입력:");
		cWord = sc.next(); 
		Word w = new Word(cWord.charAt(0));
		w.changeWord();
		
		System.out.println("===== 3번문제 =====");
		System.out.print("입장권 종류(1. 자유이용권/2. 입장권):");
		iTicket=sc.nextInt();
		System.out.print("나    이 : ");
		iAge=sc.nextInt();
		System.out.print("현재시간 :");
		iTime=sc.nextInt();
		Park p = new Park(iTicket,iAge,iTime);
		System.out.println(p);

		System.out.println("===== 5번문제 =====");
		System.out.print("숫자 1 : ");
		a=sc.nextInt();
		System.out.print("숫자 2 : ");
		b=sc.nextInt();
		System.out.print("숫자 3 : ");
		c=sc.nextInt();
		Number n = new Number(a, b, c);
		n.alignNumber();
		
		
	}
}
